import { PropertyEditorInfo } from "maishu-jueying";
import { ProductInfo } from "components/product-info/component";
import { productInfoRender } from "./product-info-render";
import { HTML } from "components/html/component";
import { htmlRender } from "./html";

// 用于生成组件布局 
export let componentRenders: { [typename: string]: (propEditors: PropertyEditorInfo[]) => JSX.Element } = {};
componentRenders[ProductInfo.name] = productInfoRender;
componentRenders[HTML.name] = htmlRender;